{include "Public/header"}
<script type="text/javascript">
$(function(){
	$("form").validate({
		rules : {
			name: {
				required : true,
				rangelength : [ 1, 50 ]
			},
			sort : {
				required:true,
				digits : true
			}
		},
		messages:{
			username:{
				required:"分类名称必须填写",
				rangelength:"分类名称必须在1-50个字之间"
			},
			sort:{
				required:"排序必须填写",
				digits:"排序必须为数字"
			}
		}
	});
});
</script>
	<div class="page_tit">{$title}</div>
	<!-- START CONFIG_FORM -->
	<form method="POST" action="">
	{if isset($_GET['id'])}
	<input type="hidden" name="id" value="{:intval($_GET['id'])}" />
	{/if}
		<div class="form2">
			<dl class="lineD">
				<dt>
					<font color="red">*</font>分类名称：
				</dt>
				<dd>
					<input name="name" maxlength="50" type="text" value="{$info['name']|''}" class="s-txt">
				</dd>
			</dl>
			<dl class="lineD">
				<dt>
					<font color="red">*</font>排序：
				</dt>
				<dd>
					<input name="sort" maxlength="7"  type="text" value="{$info['sort']|'50'}" class="s-txt">
					升序排列
				</dd>
			</dl>
			<div class="page_btm">
				<input type="submit" class="btn_b" value="保存"  />
			</div>
		</div>
	</form>
	<!-- END CONFIG_FORM -->
</div>

</html>